﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class TaskNpc : Npc
    {
        private string _task;
        public TaskNpc(string name,NpcType NpcType,string Task) : base(name,NpcType)
        {

        }

        public string Task
        {
            get { return this._task; }
            set { this._task = value; }
        }
        public override void Speak()
        {
            Console.WriteLine("类型{0}，{1},任务{2}",base.Name,base.NpcType,this.Task);
        }
    }
}
